#!/bin/bash

cat >> $1 <<EOF
version: "2"
services:
  service_$2:
    image: $2:$3
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "5"
        compress: "true"
    volumes:
      - /etc/localtime:/etc/localtime:ro
    expose:
      - "8088"
    ports:
      - "8088:8088"
EOF
